#
# C编译器的Makefile
#

all: zhi.exe

TCC_SRCFILES=asm386.c asm.c zhi.c codegen386.c codegen.c compiler.c elf.c pe.c preproc.c symbol.c type.c util.c
TCC_HDRFILES=zhi.h config.h elf.h opcodes.h tokens.h

zhi.exe: $(TCC_SRCFILES) $(TCC_HDRFILES)
    $(ZHIC) -o zhi.exe $(TCC_SRCFILES) -DUSE_LOCAL_HEAP -noshare

install: zhi.exe
    cp zhi.exe $(ROOT)/usr/bin/zhi.exe

cross: install

clean:
    rm zhi.exe
